<?php
/**
 * Created by PhpStorm.
 * User: Jacky
 * Date: 2017/5/6
 * Time: 9:21
 * 入口文件
 * 1.定义常量
 * 2.加载函数库
 * 3.启动框架
 */
define('IMOOC',realpath(''));
//define('IMOOC',__DIR__);
define('CORE',IMOOC.'/core');
define('APP',IMOOC.'/app');
define('DEBUG',true);
if(DEBUG) {
    ini_set('display_errors','On');
}else{
    ini_set('display_errors','Off');
}



include CORE.'/common/function.php';
include CORE.'/imooc.php';

spl_autoload_register('\core\imooc::load');

\core\imooc::run();

//$mystr = new \core\lib\route();

//echo $mystr::run();